package priv.sao.Filter;

import java.util.ArrayList;
import java.util.List;

public class GirlFilter implements IFilter{

	@Override
	public List<Person> doFilter(List<Person> persons) {
		List<Person> pps=new ArrayList<Person>();
		for (Person person : persons) {
			if (person.getAge()<40) {
				pps.add(person);
			}
		}
		return pps;
	}
	
}
